package com.wenwen.social.application.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class PageRequest{
	@NotNull(message = "页数不能为空")
	@Min(value = 1,message = "页数必须大于0")
	@Max(value = 10000,message = "页数最大值10000页")
	Integer pageNum;

	@NotNull(message = "显示条数不能为空")
	@Min(value = 1,message = "显示条数必须大于0")
	@Max(value = 10000,message = "显示条数最大值10000")
	Integer pageSize;
}